<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'计费设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'计费设置',
				'list'=>array(
					array('type'=>'radio','title'=>'计费方式','name'=>'baofee_type','help'=>'','options'=>'type'),
					array('type'=>'string','name'=>'baofee_shou','title'=>'首重(KG)/首件(件)'),
					array('type'=>'string','name'=>'baofee_shouprice','title'=>'首费(元)'),
					array('type'=>'string','name'=>'baofee_xu','title'=>'续重(KG)/续件(件)'),
					array('type'=>'string','name'=>'baofee_xuprice','title'=>'续费(元)')
				)
			),
		)
	);
	$return['type']=array('0'=>'按重量计费','1'=>'按件计费');
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
